/***********************************************************************************
**  
* @copyright (c) 2010-2019, ChengDu Duyer Technology Co., LTD. All Right Reserved.
*
************************************************************************************/
/**
* @file	    mjs_reqer.h
* @version     
* @brief      
* @author   duye
* @date	    2016-12-26
* @note 
*
* 1. 2016-12-26 duye Created this file
*/

#pragma once

#include <string>
#include <duye_type.h>
#include <mjs_inner_msg.h>

class MJSClient;

class MJSReqer {
public:
	MJSReqer(MJSClient* client);
	bool notify(const MJSInnerMsgType& msg_type, void* data = NULL);
	bool sendToClient(const std::string& data);
	bool sendToClient(const int8* data, const uint64 len);
	const std::string& getIP() const;
	const std::string& getUser() const;

private:
	MJSClient* m_client;
};